package org.jeecg.modules.wxuser.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.mall.entity.MallUserInfo;
import org.jeecg.modules.wxuser.dto.LoginDto;
import org.jeecg.modules.wxuser.dto.WxOpenDataDto;

/**
 * @Description: user_info
 * @Author: jeecg-boot
 * @Date:   2023-04-25
 * @Version: V1.0
 */
public interface IUserInfoService extends IService<MallUserInfo> {
    /**
     * wx.login登陆成功之后发送请求，后端登录
     * @param dto
     * @return
     */
    public MallUserInfo loginMa(LoginDto dto);

    /**
     * 通过小程序授权手机号一键登录商城
     * @param dto
     * @return
     */
    public MallUserInfo loginByPhoneMa(WxOpenDataDto dto, String token);
}
